<?php
$this->breadcrumbs=array(
	'Jobs'=>array('index'),
	'StatisticsUser',
);

$this->menu=array(
	array('label'=>'List Job', 'url'=>array('index')),
	array('label'=>'Create Job', 'url'=>array('create')),
);
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
");
/*
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('job-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
*/
?>
<div class="errorSummary">
	<p>Dữ liệu trống </p>
</div>
<h1>Thống kê công việc theo nhân  sự</h1>
<div class="search-form">
<?php $this->renderPartial('_searchByUser',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php 

$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'job-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
			'name' => 'stt',
			'value' => '$data->id' ,
		) ,
		'department',
		'received_time',
		'finished_time',
		array(
			'name' => 'job_group_id' ,
			'value'=>'JobGroup::model()->findByPk($data->job_group_id)->name'
		),
		'detail',
		'solution',
		/*
		'job_type_id',
		'is_deleted',
		'solution',
		'user_id',	
		array(
			//'class'=>'CButtonColumn',
			/* 'header'=>CHtml::dropDownList('pageSize',$pageSize,
											array(5=>5,20=>20,50=>50,100=>100),
											array('class'=>'change-pagesize')
			),
		),*/
	),
)); 

?>
